import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/system_config_menu',
  component: Layout,
  name: 'systemConfigMenu',
  meta: {
    title: '系统配置',
    icon: 'i-heroicons-solid:menu-alt-3',
  },
  children: [
    {
      path: 'openapi',
      name: 'OpenapiConfig',
      component: () => import('@/views/system_config_menu/openapi-config.vue'),
      meta: {
        title: '大模型配置',
      },
    },
    {
      path: 'xuebeng',
      name: 'XueBengConfig',
      component: () => import('@/views/system_config_menu/xuebeng-config.vue'),
      meta: {
        title: '雪崩巨量配置',
      },
    },
    {
      path: 'voice',
      name: 'voiceConfig',
      meta: {
        title: '语音服务',
        icon: 'i-heroicons-solid:menu-alt-3',
      },
      children: [
        {
          path: 'doubao',
          name: 'douBaoConfig',
          component: () => import('@/views/system_config_menu/voice/doubao-config.vue'),
          meta: {
            title: '豆包语音模型',
          },
        },
      ]
    },
  ],
}

export default routes
